<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>MergeLists</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">MergeLists()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>MergeLists</b></font>(SourceList(), DestinationList() [, Location])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Moves all elements from the SourceList() to the DestinationList(). This is a fast operation because 
the element data itself is not moved to merge the two lists. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>SourceList()</i></td>
<td width="90%"> 
 
The list from which the elements will be taken. This list will be empty after the function 
returns. 

 

</td></tr>
<tr><td><i>DestinationList()</i></td>
<td> 
 
The list to move the elements to. This list will contain the items of both lists after the 
function returns. 

 

</td></tr>
<tr><td><i>Location (optional)</i></td>
<td> 
 
Location where to insert the elements in the DestinationList(). This can be one of the following 
values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_List_Last</font>  : Append the elements at the end of DestinationList() (default)
  <font color="#924B72">#PB_List_First</font> : Insert the elements at the beginning of DestinationList()
  <font color="#924B72">#PB_List_Before</font>: Insert the elements before the current element of DestinationList()
  <font color="#924B72">#PB_List_After</font> : Insert the elements after the current element of DestinationList()
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">NewList</font></b> <font color="#3A3966">A</font>.s()
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">A</font>()):<font color="#3A3966"> A</font>() = "a0"
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">A</font>()):<font color="#3A3966"> A</font>() = "a1"
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">A</font>()):<font color="#3A3966"> A</font>() = "a2"
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">A</font>()):<font color="#3A3966"> A</font>() = "a3"
  
  <b><font color="#3A3966">NewList</font></b> <font color="#3A3966">B</font>.s()
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">B</font>()):<font color="#3A3966"> B</font>() = "b0"
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">B</font>()):<font color="#3A3966"> B</font>() = "b1"
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">B</font>()):<font color="#3A3966"> B</font>() = "b2"
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">B</font>()):<font color="#3A3966"> B</font>() = "b3"
    
  <font color="#3A3966">; Insert the elements of A() before the "b1" element in B()</font>
<font color="#3A3966">  SelectElement</font>(<font color="#3A3966">B</font>(), 1)
<font color="#3A3966">  MergeLists</font>(<font color="#3A3966">A</font>(),<font color="#3A3966"> B</font>(), <font color="#924B72">#PB_List_Before</font>)
  
  <b><font color="#3A3966">ForEach</font></b> <font color="#3A3966">B</font>()
    <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">B</font>()
  <b><font color="#3A3966">Next</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="splitlist.html">SplitList()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=listsize.html>ListSize()</a> - <a href="index.html">List Index</a> - <a href="moveelement.html">MoveElement()</a> -&gt;<br><br>

</body></html>